/* ==========================================================================
   CASE STUDY DETAIL PAGE STYLES (Professional & Enterprise Look)
   ========================================================================== */

.case-study-detail {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* 1. Hero Section Styling */
.case-study-detail .hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.case-study-detail .hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.case-study-detail .badge {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* 2. Challenge Section Bullets */
.case-study-detail .fas.fa-times-circle {
    font-size: 1.2rem;
    min-width: 25px;
}

/* 3. Solution Cards Styling */
.case-study-detail .rounded-4 {
    border-radius: 20px !important;
}

.case-study-detail .border-warning {
    border-color: #DC9401 !important;
}

.case-study-detail .bg-white.shadow-sm:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* 4. Implementation Steps (Numbered Circles) */
.case-study-detail .rounded-circle {
    box-shadow: 0 5px 15px rgba(220, 148, 1, 0.3);
    transition: transform 0.3s ease;
}

.case-study-detail .col-md-3:hover .rounded-circle {
    transform: scale(1.1) rotate(10deg);
}

/* 5. Results Section Metrics */
.case-study-detail .display-3 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

/* 6. Comparison Table Styling */
.case-study-detail .table {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.case-study-detail .table thead th {
    font-size: 1.1rem;
    border: none;
}

.case-study-detail .table tbody td {
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.case-study-detail .text-success {
    color: #10B981 !important; /* Premium Green */
}

/* 7. Conclusion CTA Button */
.case-study-detail .btn-lg {
    border-radius: 50px;
    background-color: #DC9401;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(220, 148, 1, 0.3);
}

.case-study-detail .btn-lg:hover {
    background-color: #1B3160;
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================================================
   8. RESPONSIVE OPTIMIZATION (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 991px) {
    .case-study-detail .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Padding Adjustments */
    .case-study-detail section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Hero Section Mobile Fix */
    .case-study-detail .hero-section {
        padding: 80px 20px !important;
        text-align: center !important;
        min-height: auto;
    }

    .case-study-detail .hero-content h1 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    .case-study-detail .hero-content .text-start {
        text-align: center !important;
    }

    /* Column Stacking */
    .case-study-detail .row.g-5 {
        gap: 2rem !important;
    }

    /* Results Metrics (Grid for Mobile) */
    .case-study-detail .display-3 {
        font-size: 2.5rem !important;
    }

    /* Comparison Table Horizontal Scroll */
    .case-study-detail .table-responsive {
        border-radius: 10px;
        border: 1px solid #eee;
    }

    /* Image Heights Mobile */
    .case-study-detail img {
        height: auto !important;
        margin-top: 15px;
    }

    /* Step circles size reduction */
    .case-study-detail .rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .case-study-detail .hero-content h1 {
        font-size: 1.6rem !important;
    }
    
    .case-study-detail .btn-lg {
        width: 100%;
        display: block;
        padding: 15px !important;
    }
}

